cmake_minimum_required(VERSION 3.4)

set(GOOGLETEST D:/dev/googletest)
set(MOCK_TARGET main_mock)
add_executable(${MOCK_TARGET}
    main.cpp
    ${CMAKE_SOURCE_DIR}/src/painter.cpp
)

target_include_directories(${MOCK_TARGET} PUBLIC
    ${GOOGLETEST}/googletest/include
    ${GOOGLETEST}/googlemock/include
    ${CMAKE_SOURCE_DIR}/src
)

target_link_libraries(${MOCK_TARGET}
    ${GOOGLETEST}/bld/${ARCH}/googlemock/$<$<CONFIG:Debug>:Debug>$<$<NOT:$<CONFIG:Debug>>:Release>/gmock_main.lib
)

set_target_properties(${MOCK_TARGET} PROPERTIES
    COMPILE_OPTIONS "/MT$<$<CONFIG:Debug>:d>"
)
